import Vue from 'vue'
import VueRouter from 'vue-router'
import Hot from '@/views/Hot.vue'

Vue.use(VueRouter)

const routes = [
  // 首页热映
  {
    path: '/',
    name: 'Hot',
    // component: () => import('@/views/Hot.vue')
    component:Hot,
  },
  // 视频
  {
    path: '/video',
    name: 'Video',
    meta:{
      hidetop:true,
    },
    component: () => import('@/views/Video.vue')
  },
  // 小视频
  {
    path: '/shortvideo',
    name: 'ShortVideo',
    meta:{
      hidetop:true,
    },
    component: () => import('@/views/ShortVideo.vue')
  },
  // 演出
  {
    path: '/performance',
    name: 'Performance',
    meta:{
      hidenav:true,
    },
    component: () => import('@/views/Performance.vue')
  },
  // 我的
  {
    path: '/mine',
    name: 'Mine',
    meta:{
      hidenav:true,
      hidetop:true,
    },
    component: () => import('@/views/Mine.vue')
  },
  
  // 首页待映
  {
    path: '/released',
    name: 'Released',
    component: () => import('@/views/Released.vue')
  },
  //视频详情
  {
    path: '/video/:vid',
    name: 'VideoInfo',
    meta:{
      hidenav:true,
      hidefoot:true,
      hidetop:true,
    },
    component: () => import('@/components/VideoInfo.vue')
  },
  // 城市列表
  {
    path: '/city',
    name: 'City',
    meta:{
      hidenav:true,
      hidefoot:true,
      hidetop:true,
    }, 
    component: () => import('@/views/City.vue')
  },
  // 电影详情
  {
		path: '/moviepage/:mid',
		name: 'MoviePage',
		props: true,
		meta: {
			hidenav:true,
      hidefoot:true,
      hidetop:true,
		},
		component: () => import('@/views/MoviePage.vue')
	},
  // 购票详情
  {
    path: '/buyinfo/:mid',
    name: 'BuyInfo',
    meta:{
      hidenav:true,
      hidefoot:true,
      hidetop:true,
    },
    component: () => import('@/views/BuyInfo.vue')
  },
  // 搜索
  {
    path: '/search',
    name: 'Search',
    meta:{
      hidenav:true,
      hidefoot:true,
      hidetop:true,
    },
    component: () => import('@/views/Search.vue')
  },
  // 小视频详情
  {
    path: '/shortplayer/:vid',
    name: 'ShortPlayer',
    meta:{
      hidenav:true,
      hidefoot:true,
      hidetop:true,
    },
    component: () => import('../components/ShortPlayer.vue')
  },
  // 经典电影
  {
    path: '/classic',
    name: 'Classic',
    meta:{
      // buyinfo:true
    },
    component: () => import('@/views/Classic.vue')
  },
  // 电影简介视频
  {
		path: '/videoshow',
		name: 'VideoShow',
		props: true,
		meta: {
			hidenav: true,
			hidefoot: true,
			hidetop: true
		},
		component: () => import('@/views/VideoShow.vue')
	},
  // 视频推荐
  {
		path: '/videoshowsec',
		name: 'VideoShowSec',
		props: true,
		meta: {
			hidenav: true,
			hidefoot: true,
			hidetop: true
		},
		component: () => import('@/views/VideoShowSec.vue')
	},
  // 影院详情
  {
		path: '/cinema/detail/:cid',
		name: 'CinemaDetail',
		props: true,
		meta: {
			hidenav: true,
			hidefoot: true,
			hidetop: true
		},
		component: () => import('@/views/CinemaDetail.vue')
	},

]

const router = new VueRouter({
  routes
})

export default router
